package alarm.control;

import android.os.Parcel;
import android.os.Parcelable;

public class DataSet implements Parcelable{
	private int id;
	private String path;
	private String hour;
	private String minute;
	

	private String day;
	
	public DataSet(){
		
	}
	public DataSet(Parcel in){
		readFormParcel(in);
	}
	
	private void readFormParcel(Parcel in) {
		id=in.readInt();
		path = in.readString();
		hour = in.readString();
		minute = in.readString();
		day = in.readString();
	}
	
	public DataSet(int id, String path, String hour, String minute ,String day){
		this.id = id;
		this.path = path;
		this.hour = hour;
		this.minute = minute;
		this.day = day;
	}
	public DataSet(String path, String hour, String minute, String day){
		this.path = path;
		this.hour = hour;
		this.minute = minute;
		this.day = day;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getHour() {
		return hour;
	}
	public void setHour(String hour) {
		this.hour = hour;
	}
	public String getMinute() {
		return minute;
	}
	public void setMinute(String minute) {
		this.minute = minute;
	}
	public String getDay() {
		return day;
	}
	public void setDay(String day) {
		this.day = day;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeString(path);
		dest.writeString(hour);
		dest.writeString(minute);
		dest.writeString(day);
	}
	
	public static final Parcelable.Creator<DataSet> CREATOR = new Parcelable.Creator<DataSet>() {

		@Override
		public DataSet createFromParcel(Parcel source) {
			
			return new DataSet(source);
		}

		@Override
		public DataSet[] newArray(int size) {
			return new DataSet[size];
		}
	};
	
}
